package com.itheima.reggie.utils;

/**
 * TheadLocal 线程工具类
 */
public class BaseContest {
    private static final ThreadLocal<Long> LONG_THREAD_LOCAL=new ThreadLocal<>();
    /**
     * 设置值
     */
    public static void set(Long empId){
        LONG_THREAD_LOCAL.set(empId);
    }
    /**
     * 获取值
     */
    public static Long get(){
       return LONG_THREAD_LOCAL.get();
    }
}
